# f = open("d:/text.txt","r")
# print(f)
# print(type(f))
#
# f.close()

# a = []
# count = 0
# while True:
#     f = open("d:/text.txt","r")
#     a.append(f)
#     f.close()
#     count += 1
#     print(len(a),count)

# f = open("d:/text.txt","w")
# f.write("床前明月光\n疑是地上霜\n举头望明月\n低头思故乡")
# f.close()
# f = open("d:/text.txt","r",encoding="gbk")
# result = f.read(80)
# print(result)
# f.close()

# f = open("d:/text.txt","r",encoding="gbk")
# for line in f:
#     print(line,end="")
# f.close()

# f = open("d:/text.txt","r",encoding="gbk")
# lines = f.readlines()
# print(lines)
# f.close()

# f = open("d:/MyCode/cpp/位图与布隆过滤器/BloomFilter.h","r",encoding="gbk")
# for line in f:
#     print(line,end="")
# f.close()

# #import datetime
# #from datetime import datetime
# import datetime as dt
# date1 = dt.datetime(2021,3,20)
# date2 = dt.datetime(2025,3,30)
# print(date2 - date1)

# def reverseWords(s: str):
#     tokens = s.split(" ")   #使用 str 的 split 方法进行字符串切分, 指定 空格 为分隔符. 返回结果是一个列表.
#     tokens.reverse()        #使用列表的 reverse 方法进行逆序
#     return " ".join(tokens) #使用 str 的 join 方法进行字符串拼接. 把列表中的内容进行合并.
#
# # print(reverseWords("I am a student."))
#
# def rotateString(s,goal):
#     if len(s) != len(goal):
#         return False
#     return goal in (s + s)
#
# # print(rotateString("zxcvbnm","cvbnmzx"))
#
# def count(words: list,s: str):
#     count = 0
#     for word in words:
#         if s.startswith(word):
#             count += 1
#     return count
#
# #print(count(["a","ab","abc","abcd","a"],"abcdef"))

import qrcode

# img = qrcode.make("https://blog.csdn.net/weixin_73629886?spm=1000.2115.3001.5343")
# img.save("C:/Users/18836/Desktop/csdn.png")

img = qrcode.make("我爱你")
img.save("C:/Users/18836/Desktop/love.png")
